﻿@model Classified.Domain.Entities.User
@{
    ViewBag.Title = "EditProfile";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h1>
    Edit <small>User</small></h1>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<fieldset>
    @*@using (Html.BeginForm("ChangePassword", "Account"))
    {
        <div class="clearfix">
            @Html.LabelFor(model => model.Password)
            <div class="input form-search">
                @Html.HiddenFor(model => model.Password)
                @Html.Password("newPassword")
                @Html.Hidden("userId", Model.Id)
                <input type="submit" class="btn" value="Change Password" />
            </div>
        </div>
    }*@
    @using (Html.BeginForm("EditProfile", "Account"))
    {
        @Html.ValidationSummary(true)
        @Html.HiddenFor(model => model.Id)
        @Html.HiddenFor(model => model.Password)
        <div class="clearfix">
            @Html.LabelFor(model => model.FirstName)
            <div class="input">
                @Html.EditorFor(model => model.FirstName)
                @Html.ValidationMessageFor(model => model.FirstName)
            </div>
        </div>
          
        <div class="clearfix">
            @Html.LabelFor(model => model.LastName)
            <div class="input">
                @Html.EditorFor(model => model.LastName)
                @Html.ValidationMessageFor(model => model.LastName)
            </div>
        </div>
        <div class="clearfix">
            @Html.LabelFor(model => model.UserName)
            <div class="input">
                @Html.EditorFor(model => model.UserName)
                @Html.ValidationMessageFor(model => model.UserName)
            </div>
        </div>
        <div class="clearfix">
            @Html.LabelFor(model => model.Email)
            <div class="input">
                @Html.EditorFor(model => model.Email)
                @Html.ValidationMessageFor(model => model.Email)
            </div>
        </div>
        
       
        <div class="actions">
            <input type="submit" class="btn primary" value="Save" />
        </div>
       
    }
</fieldset>
